package com.meixiang.entity.fund;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

/**
 * 我的基金（自选列表）
 * Created by xyj on 2016/6/15.
 */
public class FundOptionalResult extends FundBaseListResult implements Parcelable{

    private ArrayList<FundOptionalBean> fund_select_list ;

    protected FundOptionalResult(Parcel in) {
        fund_select_list = in.createTypedArrayList(FundOptionalBean.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(fund_select_list);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<FundOptionalResult> CREATOR = new Creator<FundOptionalResult>() {
        @Override
        public FundOptionalResult createFromParcel(Parcel in) {
            return new FundOptionalResult(in);
        }

        @Override
        public FundOptionalResult[] newArray(int size) {
            return new FundOptionalResult[size];
        }
    };

    public ArrayList<FundOptionalBean> getFund_select_list() {
        return fund_select_list;
    }

    public void setFund_select_list(ArrayList<FundOptionalBean> fund_select_list) {
        this.fund_select_list = fund_select_list;
    }
}
